package com.spic.job.api;

import com.spic.common.core.constant.ServiceNameConstants;
import com.spic.common.core.domain.R;
import com.spic.job.api.domain.HiddenGovernance;
import com.spic.job.api.factory.RemoteActivitiToSyStemFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 工作流程服务
 *
 * @author 290512
 * @create 2021-12-07 17:44
 */
@FeignClient(contextId = "remoteActivitiService", value = ServiceNameConstants.SPIC_BUSINESS_TICKETS, fallbackFactory = RemoteActivitiToSyStemFallbackFactory.class)
public interface RemoteActivitiService {
    @GetMapping("/hidden/hidden_governance/{id}")
    R<HiddenGovernance> getInfo(@PathVariable("id") Integer id);
}
